package com.dkm.biz.ou.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.biz.ou.domain.PasswordQuestion;
import com.dkm.biz.ou.repository.PasswordQuestionRepository;
import com.dkm.biz.ou.persistence.dao.PasswordQuestionQueryDao;
import com.dkm.biz.ou.persistence.entity.PasswordQuestionPo;

/**
 * 对象功能:t_ou_password_question Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-04-29 16:02:13
 */
@Repository
public class PasswordQuestionRepositoryImpl extends AbstractRepository<String, PasswordQuestionPo,PasswordQuestion> implements PasswordQuestionRepository{
	  
	@Resource
	private  PasswordQuestionQueryDao passwordQuestionQueryDao;

	public PasswordQuestion newInstance() {
		PasswordQuestionPo po = new PasswordQuestionPo();
		PasswordQuestion passwordQuestion = SpringHelper.getBean(PasswordQuestion.class);
		passwordQuestion.setData(po);
		return passwordQuestion;
	}

	public PasswordQuestion newInstance(PasswordQuestionPo po) {
		PasswordQuestion passwordQuestion = SpringHelper.getBean(PasswordQuestion.class);
		passwordQuestion.setData(po);
		return passwordQuestion;
	} 
	
	@Override
	protected IQueryDao<String, PasswordQuestionPo> getQueryDao() {
		return passwordQuestionQueryDao;
	}
	
}
